<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Panel 组件测试</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <link rel="stylesheet" href="./dist/style.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            padding: 20px;
            background: #f5f5f5;
        }
        .demo-section {
            margin-bottom: 30px;
        }
        .demo-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #333;
        }
        .demo-item {
            margin-bottom: 20px;
        }
    </style>
</head>
<body>
    <div id="app">
        <h1>Panel 面板组件测试</h1>
        
        <div class="demo-section">
            <div class="demo-title">1. 基本使用</div>
            <div class="demo-item">
                <me-panel>
                    <me-panel-title title="这是标题"></me-panel-title>
                    <me-panel-content>
                        <div>这是内容</div>
                    </me-panel-content>
                </me-panel>
            </div>
        </div>

        <div class="demo-section">
            <div class="demo-title">2. 使用插槽</div>
            <div class="demo-item">
                <me-panel>
                    <me-panel-title title="这是标题">
                        <template #content>
                            <div>标题右边内容</div>
                        </template>
                    </me-panel-title>
                    <me-panel-content>
                        <div>这是内容</div>
                    </me-panel-content>
                </me-panel>
            </div>
        </div>

        <div class="demo-section">
            <div class="demo-title">3. 自定义样式</div>
            <div class="demo-item">
                <me-panel :bordered="false">
                    <me-panel-title title="这是标题" background="#e6f7ff"></me-panel-title>
                    <me-panel-content>
                        <div>这是内容</div>
                    </me-panel-content>
                </me-panel>
            </div>
        </div>

        <div class="demo-section">
            <div class="demo-title">4. 反转标题</div>
            <div class="demo-item">
                <me-panel>
                    <me-panel-title title="这是标题" :reverse="true">
                        <template #content>
                            <div>标题右边内容</div>
                        </template>
                    </me-panel-title>
                    <me-panel-content>
                        <div>这是内容</div>
                    </me-panel-content>
                </me-panel>
            </div>
        </div>

        <div class="demo-section">
            <div class="demo-title">5. 圆角面板</div>
            <div class="demo-item">
                <me-panel :radius="8">
                    <me-panel-title title="圆角面板" background="linear-gradient(90deg, #667eea 0%, #764ba2 100%)" style="color: white;"></me-panel-title>
                    <me-panel-content>
                        <div>这是一个带圆角的面板</div>
                    </me-panel-content>
                </me-panel>
            </div>
        </div>
    </div>

    <script type="module">
        const { createApp } = Vue;
        const { MePanel, MePanelTitle, MePanelContent } = MingsUI;

        const app = createApp({
            components: {
                MePanel,
                MePanelTitle,
                MePanelContent
            }
        });

        app.mount('#app');
    </script>
    <script src="./dist/index.js"></script>
</body>
</html>
